package com.achievement.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class CommonEntity implements Serializable {


    private static final long serialVersionUID = 8269989188834393618L;

    /** 创建人id */
    @TableField(fill = FieldFill.INSERT,value="CREATEUSERID")
    private String createUserId;

    /** 创建人姓名 */
    @TableField(fill = FieldFill.INSERT,value="CREATEUSERNAME")
    private String createUserName;

    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT,value="CREATEDATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新者id */
    @TableField(fill = FieldFill.UPDATE,value="LASTEDITUSERID")
    private String lastEditUserId;

    /** 更新者姓名 */
    @TableField(fill = FieldFill.UPDATE,value="LASTEDITUSERNAME")
    private String lastEditUserName;

    /** 更新时间 */
    @TableField(fill = FieldFill.UPDATE,value="LASTEDITDATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastEditDate;
}
